package com.woniu.market_stall_web.mapper;

import com.woniu.market_stall_web.entity.Order;
import com.woniu.market_stall_web.vo.OrderVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface OrderMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Order record);

    Order selectByPrimaryKey(Integer id);

    List<Order> selectAll();

    int updateByPrimaryKey(Order record);

    int insertAuctionOrder(Order order);

    List<OrderVo> select(int userId);

    List<OrderVo> selectOrderToBePay(int userId);

    List<OrderVo> selectOrderAlreadyPay(int userId);


}